home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 14978 < prev    next >
Encoding:
Text File  |  1996-08-05  |  602 b   |  24 lines

  1. Newsgroups: comp.lang.c
  2. Path: netcom.com!russells
  3. From: russells@netcom.com (Russell Salsbury)
  4. Subject: Re: Can anyone help a newbie out ?
  5. Message-ID: <russellsDpxyGu.F1F@netcom.com>
  6. Organization: NETCOM On-line Communication Services (408 261-4700 guest)
  7. References: <4kkf3r$5b0@darwin.nbnet.nb.ca> <garyg-1404961118000001@204.183.221.242>
  8. Date: Tue, 16 Apr 1996 06:10:05 GMT
  9. Sender: russells@netcom11.netcom.com
  10.  
  11. #!/usr/bin/perl
  12. die "Bad number of args\n" if ($#ARGV != 1);
  13. if (length($ARGV[0]) >= length($ARGV[1]))
  14. {
  15.     print "$ARGV[0]\n";
  16. }
  17. else
  18. {
  19.     print "$ARGV[1]\n";
  20. }
  21.  
  22. :)
  23. Ryan    russells@netcom.com
  24.